摘要:
m_Element.Fill = SystemColors.WindowBrush;BorderBrush="{x:Static SystemColors.WindowBrush}" 阅读全文
摘要:
m_Element.Fill = SystemColors.WindowBrush;BorderBrush="{x:Static SystemColors.WindowBrush}" 阅读全文
摘要:
有时候我们需要详细展示数据源的含义,这时候就需要用到 RepositoryItemLookUpEdit展示:代码详情:ColumnData = new DevExpress.XtraGrid.Columns.GridColumn(); ColumnData.Caption = "状态"; ColumnData.Visible = true; ColumnData.OptionsColumn.FixedWidth = false; ColumnData.Width = 10; Colu... 阅读全文
摘要:
做了一个自定义控件和一个自定义Grid,里面的元素可以随着绑定属性变化:效果图(一定滑块):关键代码:1、自定义属性代码: public class MyGrid : Grid { public static readonly DependencyProperty ColumnCountProperty = DependencyProperty.Register("ColumnCount", typeof(int), typeof(MyGrid), new FrameworkPropertyMetadata((int)1,FrameworkPr... 阅读全文
摘要:
效果图:下载:Code参考:http://www.codeproject.com/Articles/33001/WPF-A-Simple-Color-Picker-With-Previewhttp://www.codeproject.com/Articles/229442/WPF-Color-Pic... 阅读全文
摘要:
JOBdeclare jobno number;begin dbms_job.submit( jobno, 'insert into tmptable1 values(1,1);', to_date('2013-07-09 12:00:00','yyyy-mm-dd HH24:mi:ss'),... 阅读全文
摘要:
SQL 语句优化: 1、union 为Bak的 分开写Where语句,Where后再union 2、union 换为union all 3、Select * 换成具体字段 3、有参数的,用参数列表,AnsiString对应的char,varchar,string对应的nchar,nvarcha... 阅读全文
摘要:
方法:1、not In2、Left join3、select * from tmptable1where (select count(1) from tmptable2 where tmptable1.agentid = tmptable2.agentid and tmptable1.phone = tmptable2.phone)=0 阅读全文
摘要:
思想:根据GUID获得种子,然后获得随机数,这个是完全随机的 static int GetRandomNumber(int min, int max) { int rtn = 0; Random r = new Random(); byte[] buffer = Guid.NewGuid().ToByteArray(); int iSeed = BitConverter.ToInt32(buffer, 0); r = new Random(iSeed); ... 阅读全文
摘要:
调用方法: ReturnObject loadReturnObject = WaitingWindow.Show("正在加载", aBO, "GetA", new Object[] { "", "", "", "", m_IteratorValues, false }) as ReturnObject;下载:Code 阅读全文
|