Example #1
0
        //  private readonly
        public P_Global(I_Global viwe)
        {
            if (!Directory.Exists("temp"))
            {
                Directory.CreateDirectory("temp");
            }
            //temp.ToList().ForEach(x =>
            //{
            //    if()
            //});



            model = new Histori();
            _viwe = viwe;
            _viwe.Close_Program       += new EventHandler <EventArgs>(Close_Program);
            _viwe.Open_Tree           += new EventHandler <EventArgs>(Open_Tree);
            _viwe.Close_Tree          += new EventHandler <EventArgs>(Close_Tree);
            _viwe.Open_Folder_in_Tree += new EventHandler <EventArgs>(Open_Folder_in_Tree);
            _viwe.Edit_List_Viwe      += new EventHandler <EventArgs>(Edit_List_Viwe);
            _viwe.Up              += new EventHandler <EventArgs>(Up);
            _viwe.End             += new EventHandler <EventArgs>(End);
            _viwe.Move_           += new EventHandler <EventArgs>(Move_);
            _viwe.Connect         += new EventHandler <EventArgs>(Start_program);
            _viwe.Renewal         += new EventHandler <EventArgs>(Renewal);
            _viwe.Remove_Die_Path += new EventHandler <EventArgs>(Remove_Die_Path);
            _viwe.ViweItem        += new EventHandler <EventArgs>(ViweItem);
            _viwe.OpenFile        += new EventHandler <EventArgs>(Open_File);
        }
Example #2
0
 //  private readonly
 public P_Global(I_Global viwe)
 {
     model = new Histori();
     _viwe = viwe;
     _viwe.Close_Program       += new EventHandler <EventArgs>(Close_Program);
     _viwe.Open_Tree           += new EventHandler <EventArgs>(Open_Tree);
     _viwe.Close_Tree          += new EventHandler <EventArgs>(Close_Tree);
     _viwe.Open_Folder_in_Tree += new EventHandler <EventArgs>(Open_Folder_in_Tree);
     _viwe.Edit_List_Viwe      += new EventHandler <EventArgs>(Edit_List_Viwe);
     _viwe.Up              += new EventHandler <EventArgs>(Up);
     _viwe.End             += new EventHandler <EventArgs>(End);
     _viwe.Move_           += new EventHandler <EventArgs>(Move_);
     _viwe.Start_program   += new EventHandler <EventArgs>(Start_program);
     _viwe.Renewal         += new EventHandler <EventArgs>(Renewal);
     _viwe.Remove_Die_Path += new EventHandler <EventArgs>(Remove_Die_Path);
     _viwe.ViweItem        += new EventHandler <EventArgs>(ViweItem);
 }