Beispiel #1
0
 public static DeclareTheShift CreateInstance()
 {
     if (obj == null)
     {
         return(obj = new DeclareTheShift());
     }
     else
     {
         return(obj);
     }
 }
Beispiel #2
0
        //prevent treeview flickering
        //static void SetDoubleBuffer(Control ctl, bool DoubleBuffered)
        //{
        //    typeof(Control).InvokeMember("DoubleBuffered",
        //        BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.SetProperty,
        //        null, ctl, new object[] { DoubleBuffered });
        //}
        private void LisView1Config()
        {
            var lstCaLamViec = DeclareTheShift.LoadAllCaLamViec();

            for (int i = 0; i < lstCaLamViec.Count; i++)
            {
                ListViewItem item = new ListViewItem(lstCaLamViec[i].MaCaLamViec);
                item.Tag = lstCaLamViec[i];
                listView1.Items.Add(item);
            }
        }
Beispiel #3
0
 private void DeclareTheShift_FormClosing(object sender, FormClosingEventArgs e)
 {
     obj = null;
 }