Пример #1
0
 void on_save_sm3_activate(object o, EventArgs e)
 {
     if (MetaverseClient.GetInstance().worldstorage.terrainmodel.Sm3Filename == "")
     {
         on_save_sm3_as1_activate(o, e);
         return;
     }
     Sm3Persistence.GetInstance().SaveSm3(MetaverseClient.GetInstance().worldstorage.terrainmodel.Sm3Filename);
 }
Пример #2
0
        void on_open_sm3_activate(object o, EventArgs e)
        {
            string filepath = GetFilePath("Open SM3", "*.sm3");

            if (filepath != "")
            {
                Sm3Persistence.GetInstance().LoadSm3(filepath);
            }
        }
Пример #3
0
        void on_save_sm3_as1_activate(object o, EventArgs e)
        {
            string filepath = GetFilePath("Save SM3 as", "*.sm3");

            if (filepath != "")
            {
                Sm3Persistence.GetInstance().SaveSm3(filepath);
            }
        }
Пример #4
0
 void on_new_sm3_activate(object o, EventArgs e)
 {
     Sm3Persistence.GetInstance().NewSm3();
 }