Exemplo n.º 1
0
        private void loadToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string LoadFileName = "";
            string ErrLoading   = "";

            LoadFileName = CommFnc.FindFileToOpen();
            GNetwork.Clear();
            if (GNetwork.LoadFile(LoadFileName, ref ErrLoading) == true)
            {
                toolStripStatusLabel1.Text = "File loaded in memory.";
            }
            else
            {
                toolStripStatusLabel1.Text = ErrLoading;
            }
        }
Exemplo n.º 2
0
 private void Form1_Load(object sender, EventArgs e) //程式進入點
 {
     GNetwork = new GScenario(Nmax);                 //建立元件紀錄容器
     GNetwork.Clear();                               //清空元件紀錄容器
     GNetwork.CurrObjIndx = 0;                       //元件紀錄容器
 }
Exemplo n.º 3
0
 private void Form1_Load(object sender, EventArgs e)
 {
     GNetwork = new GScenario(Nmax);
     GNetwork.Clear();
     GNetwork.CurrObjIndx = 0;
 }