Beispiel #1
0
        private void TSMI_Refresh_Click(object sender, EventArgs e)
        {
            if (LV_TA.Focused)
            {
                ListViewEditor.Refresh(ProjectFolders.TextureAtlasPath, LV_TA, SmallIconsSize, LargeIconsSize);
            }
            if (LV_NM.Focused)
            {
                ListViewEditor.Refresh(ProjectFolders.NormalMapsPath, LV_NM, SmallIconsSize, LargeIconsSize);
            }
            if (LV_SM.Focused)
            {
                ListViewEditor.Refresh(ProjectFolders.SpecularMapsPath, LV_SM, SmallIconsSize, LargeIconsSize);
            }

            TSMI_LargeIcons.Checked = true;
            TSMI_SmallIcons.Checked = false;
        }
Beispiel #2
0
 private void LV_SM_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyData == Keys.Add)
     {
         if (!TSMI_LargeIcons.Checked)
         {
             IconSizeChange(false);
         }
     }
     if (e.KeyData == Keys.Subtract)
     {
         if (!TSMI_SmallIcons.Checked)
         {
             IconSizeChange(true);
         }
     }
     if (e.KeyData == Keys.F5)
     {
         ListViewEditor.Refresh(ProjectFolders.TextureAtlasPath, LV_TA, SmallIconsSize, LargeIconsSize);
         TSMI_LargeIcons.Checked = true;
         TSMI_SmallIcons.Checked = false;
     }
 }